define(['../../../../js/lib/other/sweet-alert'],function() {
    return ['$scope','$location', '$interval','$timeout', function($scope,$location,$interval,$timeout) {
    	$scope.$emit("top-show",'true');//顶部显示
    	// $scope.$emit('menuTypeLight','loan'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','77'); 	//显示底部文字
    	
    	$scope.applyforNow = function(){
            if(transData.sessionId != null && transData.sessionId != ""){
                if(resultData.loginUserData.userName){
                    $scope.$emit("goNext","/applyRisk");
                }else{//未完善资料用户不可申请
                    FIREFLY("请先去'我的'里面完善个人信息", "","",function(){});
                }
            }else{
                $scope.$emit("goNext","/login");
            }
    	}
        $scope.$apply();
    }];
});